package com.ruoyi.source.api.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 产品信息对象 src_product
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@TableName("src_product")
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class SrcProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    @TableId(type = IdType.AUTO)
    private Long productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 零售编码 */
    @Excel(name = "零售编码")
    private String marketId;

    /** 配料 */
    @Excel(name = "配料")
    private String burden;

    /** 净含量 */
    @Excel(name = "净含量")
    private String netContent;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    /** 生产日期 */
    @Excel(name = "生产日期")
    private Date productDate;

    /** 保质期 */
    @Excel(name = "有效期")
    private String expirationDate;

    /** 货物数量 */
    @Excel(name = "货物数量")
    private Long num;


    /** 存储方式 */
    @Excel(name = "存储方式")
    private Long storageMethod;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phone;


    /** 生产厂家 */
    @Excel(name = "生产厂家")
    private String manufacturer;

    /** 生产厂家 */
    @Excel(name = "溯源码")
    private String sourceCode;


    /** 0 正常 1删除 */
    @Excel(name = "0 正常 1删除")
    @TableLogic
    private String isFault;

    /**备注 */
    @Excel(name = "备注")
    private String remark;

    /**存储方式*/
    @Excel(name = "存储方式")
    @TableField(exist = false)
    private String storageMethodName;

    private Integer provinceId;
    private Integer cityId;
    private Integer countyId;
    @TableField(exist = false)
    private String cname;
    @TableField(exist = false)
    private String sname;
    @TableField(exist = false)
    private String xname;
    @TableField(exist = false)
    private String address;




}
